﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace TestHarnessWebRole.Data
{
    public class Company : TableServiceEntity
    {
        private string name;

        public Company()
        {
            this.RowKey = Guid.NewGuid().ToString("N");
        }

        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
                this.PartitionKey = "Companies";
            }
        }

        public string LocationId
        {
            get;
            set;
        }
    }
}
